﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.EXCERCISES.EXCERCISE_04
{
    class DongVat
    {
        string Ten, Chay, Ngu, Noi, Nhay;

        public string NHAY
        {
            get { return Nhay; }
            set { Nhay = value; }
        }

       

        public string NGU
        {
            get { return Ngu; }
            set { Ngu = value; }
        }

        public string CHAY
        {
            get { return Chay; }
            set { Chay = value; }
        }

        public string TEN
        {
            get { return Ten; }
            set { Ten = value; }
        }
        double Chan, Mat;

        public double MAT
        {
            get { return Mat; }
            set { Mat = value; }
        }

        public double CHAN
        {
            get { return Chan; }
            set { Chan = value; }
        }

        public DongVat(string ten, double chan, double mat, string chay, string ngu, string nhay)
        {
            Ten = ten;
            Chan = chan;
            Mat = mat;
            Chay = chay;
            Ngu = ngu;
           
            Nhay = nhay;
        }



    }
}
